package com.pocket.demo.core.log;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import com.pocket.demo.base.system.PocketSystemInfo;

/**
 * @author cookie.
 **/
public class ServerHostNameConverter extends ClassicConverter {

    public static String getHostName() {
        return PocketSystemInfo.serverHostName;
    }

    public String convert(ILoggingEvent event) {
        return getHostName();
    }
}
